package cn.lxh.remote.api;

import cn.lxh.constants.Constants;
import cn.lxh.remote.pojo.bo.CreateLoginBo;
import cn.lxh.remote.fallback.LoginFeignApiFallbackFactory;
import cn.lxh.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author lxh Create Time: 2023/12/23 17:03
 * LoginFeignApi接口
 */
@FeignClient(value = Constants.Remote.SERVICE_UAA, fallbackFactory = LoginFeignApiFallbackFactory.class)
public interface LoginFeignApi {

    @PostMapping("/remote/login")
    JSONResult create(@RequestBody @Validated CreateLoginBo createLoginBo);
}
